package mn.more.wits.server.model;

import java.io.Serializable;

/**
 * This class represents <code>test taker</code>'s response to exaclty
 * <b>ONE</b> test question.  Server-side application may choose not to enforce
 * response validity (e.g. only one response for a T/F quesiton) at times, but
 * at other times enforce it (e.g. accept only 500 characters or less for
 * 'essay' questions).  In either case, this class will not exercise any of the
 * validation -- a.k.a. POJO.
 * <p/>
 * Hence, some server-side validation code is required for this class.
 * <p/>
 * todo: needs more documentation!
 *
 * @author $Author: mikeliucc $
 * @version $Id: ExamSessionResponse.java 5 2008-09-01 12:08:42Z mikeliucc $
 */
public class ExamSessionResponse implements Serializable {

	private int questionId;
	private long responseReceivedTs;
	private int[] responses;
	private String responseText;

	public int getQuestionId() {
		return questionId;
	}

	public void setQuestionId(int questionId) {
		this.questionId = questionId;
	}

	public long getResponseReceivedTs() {
		return responseReceivedTs;
	}

	public void setResponseReceivedTs(long responseReceivedTs) {
		this.responseReceivedTs = responseReceivedTs;
	}

	public int[] getResponses() {
		return responses;
	}

	public void setResponses(int[] responses) {
		this.responses = responses;
	}

	public String getResponseText() {
		return responseText;
	}

	public void setResponseText(String responseText) {
		this.responseText = responseText;
	}
}
